package com.wushibo.adddatabackend.service.impl;

import com.wushibo.adddatabackend.entity.PersonInformation;
import com.wushibo.adddatabackend.mapper.PersonInforMapper;
import com.wushibo.adddatabackend.service.PersonInforService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PersonInforServiceImpl implements PersonInforService {
    @Autowired
    private PersonInforMapper personInforMapper;


    @Override
    public List<PersonInformation> getPersonInfor() {
        List<PersonInformation> personInformation=personInforMapper.queryUserList();
        System.out.println("获取数据成功===》"+personInforMapper.queryUserList());
        return personInformation;
    }
}
